package app.myproject.dao;

import app.myproject.model.EventVO;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

public class EventDAOImpl extends AbstractDAOImpl<EventVO, Key> {

	public EventDAOImpl() {
		super(EventVO.class);
	}

	public EventVO find(String encodedKey) {
		if (encodedKey != null) {
			Key key = KeyFactory.stringToKey(encodedKey);
			return super.find(key);
		}
		return null;
	}
	
	public void deleteById(String encodedKey) {
		Key key = KeyFactory.stringToKey(encodedKey);
		super.deleteById(key);
	}

}
